/*
 *  lock.cpp
 */

#include "debug.h"
#include "lock.h"
#include "mutex.h"

Lock::Lock(Mutex* mutex)
{
    this->mutex = mutex;
    mutex->lock();
}

Lock::~Lock()
{
    mutex->unlock();
}

//{+}

